<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sickhrs-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	
		<?php echo $form->hiddenField($model,'empno',array('size'=>4,'maxlength'=>4)); ?>
	

	<div class="row">
		<?php echo $form->labelEx($model,'hours'); ?>
		<?php echo $form->textField($model,'hours',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'hours'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'notes'); ?>
		<?php echo $form->textArea($model,'notes',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'notes'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'datetaken'); ?>
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker',array(
                    'model'=>$model,
                    'attribute'=>'datetaken',
                    'value'=>CTimestamp::formatDate('Y-m-d',$model->datetaken),
                    'options' => array('dateFormat'=>'yy-m-d'),
                )); ?>
		<?php echo $form->error($model,'datetaken'); ?>
	</div>

	<div class="row_buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->